package com.tmsps.ne4weixin.bean.message.send;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.tmsps.ne4weixin.annotation.XStreamCDATA;
import com.tmsps.ne4weixin.bean.message.event.BaseEvent;
import com.tmsps.ne4weixin.bean.message.receive.InBaseMessage;
import com.tmsps.ne4weixin.bean.message.send.vo.Video;
import com.tmsps.ne4weixin.config.enumeration.MsgTypeEnum;

import lombok.Getter;
import lombok.Setter;

/**
 * @Title: VideoMessage.java
 * @Package: com.tmsps.ne4weixin.bean.send
 * @Description: 被动回复用户消息-回复视频消息
 * @author: hanjiefei
 * @date: 2019-10-18
 * @version V1.0
 * @Copyright: 2019 
 */
@XStreamAlias("xml")
@Setter
@Getter
public class OutVideoMessage extends OutBaseMessage {
	
	@XStreamCDATA(join=true)
	@XStreamAlias("Video")
	private Video video;
	
	public OutVideoMessage(String mediaId, String title, String description) {
		super(MsgTypeEnum.VIDEO);
		this.video = new Video(mediaId, title, description);
	}
	
	public OutVideoMessage(InBaseMessage message) {
		super(message,MsgTypeEnum.VIDEO);
	}
	
	public OutVideoMessage(BaseEvent event) {
		super(event,MsgTypeEnum.VIDEO);
	}
}
